package com.chainshop.outboundRecords.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.chainshop.outboundRecords.mapper.OutboundRecordsMapper;
import com.chainshop.outboundRecords.domain.OutboundRecords;
import com.chainshop.outboundRecords.service.IOutboundRecordsService;

/**
 * 出库记录Service业务层处理
 * 
 * @author zzd
 * @date 2024-08-12
 */
@Service
public class OutboundRecordsServiceImpl implements IOutboundRecordsService 
{
    @Autowired
    private OutboundRecordsMapper outboundRecordsMapper;

    /**
     * 查询出库记录
     * 
     * @param id 出库记录主键
     * @return 出库记录
     */
    @Override
    public OutboundRecords selectOutboundRecordsById(Integer id)
    {
        return outboundRecordsMapper.selectOutboundRecordsById(id);
    }

    /**
     * 查询出库记录列表
     * 
     * @param outboundRecords 出库记录
     * @return 出库记录
     */
    @Override
    public List<OutboundRecords> selectOutboundRecordsList(OutboundRecords outboundRecords)
    {
        return outboundRecordsMapper.selectOutboundRecordsList(outboundRecords);
    }

    /**
     * 新增出库记录
     * 
     * @param outboundRecords 出库记录
     * @return 结果
     */
    @Override
    public int insertOutboundRecords(OutboundRecords outboundRecords)
    {
        return outboundRecordsMapper.insertOutboundRecords(outboundRecords);
    }

    /**
     * 修改出库记录
     * 
     * @param outboundRecords 出库记录
     * @return 结果
     */
    @Override
    public int updateOutboundRecords(OutboundRecords outboundRecords)
    {
        return outboundRecordsMapper.updateOutboundRecords(outboundRecords);
    }

    /**
     * 批量删除出库记录
     * 
     * @param ids 需要删除的出库记录主键
     * @return 结果
     */
    @Override
    public int deleteOutboundRecordsByIds(Integer[] ids)
    {
        return outboundRecordsMapper.deleteOutboundRecordsByIds(ids);
    }

    /**
     * 删除出库记录信息
     * 
     * @param id 出库记录主键
     * @return 结果
     */
    @Override
    public int deleteOutboundRecordsById(Integer id)
    {
        return outboundRecordsMapper.deleteOutboundRecordsById(id);
    }
}
